package Test1230;

public class Test04 {
    public static void main(String[] args) {

        // (4)求1+2+3+4...+10和
int sum=0;
for (int i=1;i<=10;i++){
    sum+=i;
}
System.out.println(sum);
    }
}